package com.iflytek.universitymanagement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.universitymanagement.domain.Account;
import com.iflytek.universitymanagement.domain.Student;
import com.iflytek.universitymanagement.domain.StudentScore;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author louyp
 * @since 2024-11-26
 */
public interface StudentService extends IService<Student> {



    Account login(Account account);


    void register(Account account);


    void add(Student student);



    Integer getStudentIdByName(String studentName);
    boolean updatePassword(Long id, String newPassword);


    // 根据学生姓名查询学生信息
    Student getStudentByName(String studentName);
//    IPage<Student> selectPage(Student student, Integer pageNum, Integer pageSize);


//    List<StudentScore> getStudentScores(Integer studentId);

    void resetPassword(Student student);
}
